/*!
 *  \file       IntervalRandomGenerator.hpp
 *  \brief      Definizione della classe \c IntervalRandomGenerator
 *  \author     Davide Scola <S2299453@studenti.unige.it>
 *  \author	Minetti Alberto <S3064777@studenti.unige.it>
 *  \version    1.0
 */

#ifndef _INTERVAL_RANDOM_GENERATOR_H
#define _INTERVAL_RANDOM_GENERATOR_H

/*!
 *  \brief      Definizione della classe \c IntervalRandomGenerator
 */
template< typename tType >
class IntervalRandomGenerator : public NormalizedRandomGenerator< tType >
{
  public :
    IntervalRandomGenerator( tType, tType, IEntropyGenerator & );
    IntervalRandomGenerator( IntervalRandomGenerator< tType > const& );
    
    virtual IntervalRandomGenerator& operator=( const IntervalRandomGenerator& );
    
    virtual tType next();
    
  protected :
    tType	minRange_;
    tType	maxRange_;
};

// Idiomatic random generators
typedef IntervalRandomGenerator< double >	RangeRandomGenerator;

#endif              /* _INTERVAL_RANDOM_GENERATOR_H */
